!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="91764cdb-c522-4c09-b23a-6a5674d5c353",e._sentryDebugIdIdentifier="sentry-dbid-91764cdb-c522-4c09-b23a-6a5674d5c353")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2024],{26013:function(e,t,r){r.d(t,{Nb:function(){return o},YS:function(){return n.YS},aD:function(){return n.aD},tw:function(){return l},xr:function(){return i}});var n=r(11031);let o="$rounded-[8px] $shadow-[0_0_60px_rgba(34,_34,_34,_0.25)] $bg-surface-0 dark:bg-surface-1 $z-[2] $overflow-hidden $flex $flex-col",l="$bg-transparent hover:$bg-surface-2 $px-[20px] $py-[10px] $cursor-pointer $sprinkles-text-xs $text-surface-foreground-2 $flex $gap-[10px] $items-center outline-none",i="$text-white dark:text-surface-1"},11031:function(e,t,r){r.d(t,{Mw:function(){return a},VX:function(){return o},YS:function(){return l},aD:function(){return u}});var n=r(57291);let o=10,l=(0,n.j)("absolute right-4 top-4 flex flex-col gap-2 transition-all",{variants:{calculating:{true:"opacity-0",false:""}},defaultVariants:{calculating:!1}}),i="flex justify-center items-center rounded-full size-10 shadow-[0_0_60px_rgba(34,_34,_34,_0.25)] bg-surface-0 hover:bg-surface-3 text-surface-foreground-0",u=(0,n.cx)(i,"rounded-full size-10"),a=(0,n.cx)(i,"rounded-full size-[35px]")},63123:function(e,t,r){r.d(t,{CC:function(){return o},KW:function(){return i},NG:function(){return n},jN:function(){return l}});let n=124,o=180,l=140,i=160},70870:function(e,t,r){r.d(t,{n:function(){return l}});var n=r(2209),o=r(52983);let l=e=>{let[t,r]=(0,o.useState)({height:null,width:null}),l=(0,o.useCallback)(()=>{let t=null==e?void 0:e.current;if(!t)return;let{width:n,height:o}=t.getBoundingClientRect();r({width:n,height:o})},[e]),i=(0,n.y)(l,500);return(0,o.useEffect)(()=>{l();let t=null==e?void 0:e.current,r=new ResizeObserver(i);return t&&r.observe(t),()=>{t&&r.unobserve(t)}},[i,l,e]),t}},29085:function(e,t,r){r.d(t,{Q:function(){return n}});let n=(0,r(52983).createContext)(null)},20339:function(e,t,r){r.d(t,{l:function(){return u}});var n=r(97458),o=r(65122),l=r(52983),i=r(29085);let u=e=>{let{children:t,thumbnailHeight:r}=e,[u,a]=(0,l.useState)(!1),c=(0,o.e)(),s=(0,l.useCallback)(()=>{c||r<90||a(!0)},[c,r]),d=(0,l.useCallback)(()=>{a(!1)},[]),f=(0,l.useMemo)(()=>({attributionEnabled:u,showAttribution:s,hideAttribution:d,thumbnailHeight:r}),[u,d,s,r]);return(0,l.useEffect)(()=>{u&&setTimeout(()=>{d()},15e3)},[u,d]),(0,n.jsx)(i.Q.Provider,{value:f,children:t})}},50987:function(e,t,r){r.d(t,{J:function(){return l}});var n=r(52983),o=r(29085);let l=()=>{let e=(0,n.useContext)(o.Q);if(null===e)throw Error("useAttributionThumbnailState must be used within a AttributionThumbnailContext");return e}},52294:function(e,t,r){r.d(t,{N:function(){return c}});var n=r(97458),o=r(770),l=r(9249),i=r(24985),u=r(10893),a=r(59470);let c=()=>{let{t:e}=(0,u.$G)("common");return(0,n.jsxs)("span",{className:a.q,children:[(0,n.jsx)(l.T,{children:e("generatedByAI")}),(0,n.jsx)(o.J,{as:i.Z,size:"sm",className:"$text-white"})]})}},4784:function(e,t,r){r.d(t,{s:function(){return s}});var n=r(97458),o=r(86101),l=r(770),i=r(9249),u=r(92336),a=r(10893),c=r(70654);let s=()=>{let{t:e}=(0,a.$G)("detail");return(0,n.jsx)(o.u,{side:"bottom",trigger:(0,n.jsxs)("span",{className:c.z7,children:[(0,n.jsx)(i.T,{children:"Premium"}),(0,n.jsx)(l.J,{as:u.Z,size:"base",className:"text-white"})]}),backgroundColor:"grayEbony",colorText:"white",zIndex:2,hideOnLeaveHover:!0,className:c.Db,arrowClassName:c.Ri,defaultPadding:!1,children:e("checkedCrownTooltip")})}},70654:function(e,t,r){r.d(t,{Db:function(){return o},Ri:function(){return l},z7:function(){return n}});let n="flex size-[29px] items-center justify-center rounded-full",o="max-w-[200px] p-2 text-center",l="text-surface-foreground-0"},41776:function(e,t,r){r.d(t,{w:function(){return v}});var n=r(97458),o=r(86101),l=r(54455),i=r(770),u=r(9249),a=r(83273),c=r(10893),s=r(13745),d=r(52983),f=r(65724);let m=e=>{let{children:t,location:r,category:o,action:l,urlParams:i,className:u,onButtonClick:a=()=>void 0,resourceData:c,modalType:m="premiumContent"}=e,p=(0,f.W)(),v=(0,d.useMemo)(()=>({category:o,location:r,action:l,resource_id:c.id}),[l,o,c.id,r]),[g,h]=(0,s.n9)(v);return(0,d.useEffect)(()=>{g()},[g]),(0,n.jsx)("button",{className:u,onClick:()=>{a(),h(),p({checkoutQueryParams:i,modalType:m,resourceData:c,origin:r})},children:t})};var p=r(70654);let v=e=>{let{resource:t,urlParams:r,category:s}=e,{t:d}=(0,c.$G)(["common","detail"]),f=(0,l.E)(),v=(0,n.jsxs)("span",{className:p.z7,children:[(0,n.jsx)(u.T,{children:"Premium"}),(0,n.jsx)(i.J,{as:a.Z,size:"sm",className:"$text-yellowPremium"})]});return(0,n.jsxs)(o.u,{side:"bottom",trigger:v,backgroundColor:"grayEbony",colorText:"white",zIndex:2,className:p.Db,defaultPadding:!1,arrowClassName:p.Ri,children:[d("detail:premiumCrownTooltip")," ",(0,n.jsx)(m,{className:"$text-yellowSin inline-flex text-sm font-semibold",location:"thumbnail",urlParams:r,category:s,action:f?"upgrade":"get_plan",resourceData:t,children:d(f?"common:upgrade":"common:goPremium")})]})}},59470:function(e,t,r){r.d(t,{q:function(){return n}});let n="flex size-8 items-center justify-center rounded-full bg-overlay-dialog"},65724:function(e,t,r){r.d(t,{W:function(){return i}});var n=r(13745),o=r(52983),l=r(21455);let i=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"resource_detail_premium",{setShowModal:i,setOrigin:u,setTrackerClick:a,setResourceData:c,setCheckoutQueryParams:s,setModalType:d}=(0,l.u)(),f=(0,o.useMemo)(()=>({category:t,location:r,ACTION:"go_premium",...e&&{resource_id:e}}),[t,r,e]),[m,p]=(0,n.n9)(f);return(0,o.useCallback)(e=>{let{resourceData:t,origin:r,onButtonClick:n=()=>void 0,checkoutQueryParams:o,modalType:l="premiumContent"}=e;u(r),a(()=>p),c(t),s(o),d(l),m(),n(),i(!0)},[u,a,c,s,d,m,i,p])}},18666:function(e,t,r){r.d(t,{B:function(){return m}});var n=r(97458),o=r(86101),l=r(23113),i=r(79235),u=r(97374),a=r(770),c=r(9249),s=r(44854),d=r(10893),f=r(1703);let m=e=>{let{id:t,name:r,type:m,buttonClassName:p,labelClassName:v,preview:g,inThumbnail:h=!1,showLabel:w=!1,tooltipProps:b={},trigger:x}=e,{t:_}=(0,d.$G)("detailCommon"),y=(0,i.nD)(),C=(0,l.a)("lgMax"),j=(0,f.E)({id:t,name:r,type:m,preview:g,inThumbnail:h}),E=_("viewSimilar");if(x)return(0,n.jsx)(u.fC,{onClick:j,children:x});let k=(0,n.jsxs)("button",{"data-cy":"view-similar-button",className:p,onClick:j,children:[(0,n.jsx)(c.T,{children:E}),(0,n.jsx)(a.J,{as:s.Z,size:"base"}),w&&(0,n.jsx)("span",{className:v,children:E})]});return C||w?k:(0,n.jsx)(o.u,{...b,trigger:k,triggerAsChild:!0,hideOnLeaveHover:!0,container:y.current,children:E})}},1703:function(e,t,r){r.d(t,{E:function(){return i}});var n=r(51771),o=r(73701),l=r(12533);let i=e=>{let{id:t,name:r,type:i,preview:{width:u,height:a,url:c},inThumbnail:s=!1}=e,d=(0,l.z)(c,u,a),f=(0,o.Z)(),m=(0,n.f)({event_name:s?"similar_images_thumbnail":"similar_images",file_id:t.toString(),file_name:r,content_group2:i,search_logic_applied:"similar_images"});return async e=>{e.preventDefault(),e.stopPropagation(),m(),f(),await d(i)}}},38012:function(e,t,r){r.d(t,{p:function(){return n}});let n=(0,r(57291).cx)("hover:bg-surface-3 h-10 flex font-semibold items-center justify-center gap-2 cursor-pointer bg-surface-0 text-surface-foreground-0 hover:bg-surface-0/20 focus:bg-surface-0/30 rounded-full text-xs pointer-events-auto")},53003:function(e,t,r){r.d(t,{c:function(){return v}});var n=r(97458),o=r(62758),l=r(33523),i=r(58058),u=r.n(i),a=r(10893),c=r(52983),s=r(51125),d=r(61462),f=r(93682),m=r(68464);let p=(0,c.memo)(e=>{let{item:t,categoryGAEvent:r,fromElement:o}=e,[i,u]=(0,c.useState)(!1),a=(0,c.useRef)(null),d=(0,c.useRef)(!1),m=(0,c.useMemo)(()=>{let e=t.preview.width/t.preview.height;return f.w*e},[t.preview.width,t.preview.height]);return(0,c.useEffect)(()=>{let e=new IntersectionObserver(e=>{let[t]=e;t.isIntersecting&&!d.current&&(d.current=!0,u(!0))},{root:null,rootMargin:"0px 50px",threshold:.1}),t=a.current;return t&&e.observe(t),()=>{t&&e.unobserve(t),e.disconnect()}},[]),(0,n.jsx)("div",{ref:a,children:i?(0,n.jsx)(s.RelatedThumbnail,{item:t,categoryGAEvent:r,fromElement:o}):(0,n.jsx)("div",{className:"relative block cursor-pointer overflow-hidden rounded",children:(0,n.jsx)(l.O.Rect,{style:{width:m,height:f.w}})})})});p.displayName="LazyThumbnail";let v=e=>{let{title:t,link:r,url:l,items:i,categoryGAEvent:c,fromElement:s,className:f}=e,{t:v}=(0,a.$G)("common");return i&&0!==i.length?(0,n.jsxs)("div",{"data-testid":"detail-carousel-".concat(t),className:f,children:[(0,n.jsxs)("div",{className:m.zY,children:[(0,n.jsx)("p",{className:m.TN,role:"heading","aria-level":4,children:t}),r&&l&&(0,n.jsx)(u(),{href:l,className:m.p4,children:r})]}),(0,n.jsx)(d.b,{items:i,fromView:"detail",children:(0,n.jsx)(o.z,{arrowPrevAriaLabel:v("previous"),arrowNextAriaLabel:v("next"),children:i.map(e=>(0,n.jsx)(p,{item:e,categoryGAEvent:c,fromElement:s},e.id))})})]}):null}},61890:function(e,t,r){r.r(t),r.d(t,{DetailRelatedCrossSelling:function(){return d}});var n=r(97458),o=r(10893),l=r(53003),i=r(13936);let u={photo:"relatedPhotos",vector:"relatedVectors",psd:"relatedPSD",template:"relatedTemplates"},a={photo:"youMightAlsoLikePhotos",vector:"youMightAlsoLikeVectors",psd:"youMightAlsoLikePSD"},c={photo:"cross_selling__photo",vector:"cross_selling__vector",psd:"cross_selling__psd",template:"cross_selling__template"},s={photo:"related-cross-sell-photo",vector:"related-cross-sell-vector",psd:"related-cross-sell-psd",template:"related-cross-sell-template"},d=e=>{var t,r,d;let{crossSellType:f,order:m,items:p,type:v,id:g,className:h}=e,{t:w}=(0,o.$G)("detailCommon"),b=null!==(t=s[f])&&void 0!==t?t:"";if((0,i.U)({resourceId:g,relatedSection:b,resourcesIds:null!==(r=null==p?void 0:p.map(e=>{let{id:t}=e;return t}))&&void 0!==r?r:[],type:v,order:m}),!p)return null;let x=v===f?a:u;return(0,n.jsx)(l.c,{title:w(null!==(d=x[f])&&void 0!==d?d:""),items:p,categoryGAEvent:b,fromElement:c[f],className:h})}},13936:function(e,t,r){r.d(t,{U:function(){return a}});var n=r(29456),o=r(52983),l=r(35576),i=r(7009);let u=e=>{let{resourceId:t,relatedSection:r,resourcesIds:n,type:o,walletIdParam:i,order:u=0}=e,a=n.join("&"),c="send&event&detail&".concat(t,"&").concat(o,"&").concat(r,"&").concat(u,"&").concat(a).concat(i);(0,l.OA)(c)},a=e=>{let{resourceId:t,relatedSection:r,resourcesIds:l,type:a,order:c}=e,s=(0,i.J)(),d=(0,n.H)(),[f,m]=(0,o.useState)(!1);(0,o.useEffect)(()=>{l.length&&d&&!f&&(u({resourceId:t,relatedSection:r,resourcesIds:l,type:a,walletIdParam:s,order:c}),m(!0))},[t,r,l,a,s,d,f,c])}},63081:function(e,t,r){r.d(t,{Bm:function(){return l},Ej:function(){return o}});var n=r(7858);let o="resource_detail",l=[o,"freepik_web_download_limit"];Object.values(n.a2)},93898:function(e,t,r){r.d(t,{B:function(){return n}});let n=(0,r(52983).createContext)({})},98836:function(e,t,r){r.d(t,{n:function(){return v}});var n=r(97458),o=r(59445),l=r(58443),i=r(68147),u=r(56106),a=r(26324),c=r(87420),s=r(52983),d=r(72118),f=r(55408);let m=e=>{let{uuid:t,searchTrackingCode:r,page:n,userId:o,isUserPremium:l,userData:i,country:u,language:a,walletId:c}=e,m=(0,s.useRef)([]),p=(0,s.useRef)(null),v=(0,s.useCallback)(()=>{var e,s,v,g;let h=m.current;if(0===h.length)return;let w=new URLSearchParams({partner:"data",event_at:Date.now().toString(),batch_size:h.length.toString(),...t&&{uuid:t},ga_client_id:null!==(e=d.Z.get("_ga"))&&void 0!==e?e:"",user_id:null!==(s=null==o?void 0:o.toString())&&void 0!==s?s:"0",is_premium_user:l?"1":"0",user_type:null!==(v=null==i?void 0:i.user_type_fr)&&void 0!==v?v:"anonymous",...c&&{wallet_id:c},...u&&{country_iso_code:u},...a&&{language_iso_code:a},page:null!==(g=null==n?void 0:n.toString())&&void 0!==g?g:"1",...r&&{track:r},items:JSON.stringify(h)}),b="send&event&".concat(w.toString());(0,f.O)(b),m.current=[],p.current&&(clearTimeout(p.current),p.current=null)},[u,l,a,n,r,null==i?void 0:i.user_type_fr,o,t,c]),g=(0,s.useCallback)(()=>{p.current||(p.current=setTimeout(()=>{v()},2e3))},[v]),h=(0,s.useCallback)(e=>{m.current.push(e),m.current.length>=10?v():g()},[v,g]);return(0,s.useEffect)(()=>()=>{p.current&&clearTimeout(p.current),m.current.length>0&&v()},[v]),h};var p=r(93898);let v=e=>{let{children:t,searchTrackingCode:r,vertical:d,page:f,uuid:v}=e,g=(0,i.I)(),h=(0,u.H)(),w=(0,o.Lh)(),b=(0,l.D)(),x=(0,a.N)(),_=(0,c.ZK)(),y=(0,s.useMemo)(()=>({uuid:v,searchTrackingCode:r,page:f,userId:null!=g?g:void 0,isUserPremium:h,userData:null!=b?b:void 0,country:null!=x?x:void 0,walletId:null!=w?w:void 0}),[v,r,f,g,h,b,x,w]),C=m(y),j=(0,s.useMemo)(()=>({...y,vertical:d,language:_,addEventTrackerToQueue:C}),[y,d,_,C]);return(0,n.jsx)(p.B.Provider,{value:j,children:t})}},58750:function(e,t,r){r.d(t,{n:function(){return n.n},o:function(){return p}});var n=r(98836),o=r(41047),l=r(2606),i=r(68147),u=r(91394),a=r(56106),c=r(96986),s=r(52983),d=r(70730),f=r(80144);let m={premium:"P",nonPremium:"R"},p=(e,t)=>{let r=(0,c.P)(),n=(0,u.d)(),p=(0,i.I)(),v=(0,a.H)(),g=(0,l.A)(),h=(0,d.I)(),{searchTrackingCode:w}=(0,f.i)(),b=(0,s.useMemo)(()=>{let e=new URLSearchParams;if(r&&r.userType!==o.Wg.anonymous&&r.userId){let t=m[r.userType===o.Wg.premium?"premium":"nonPremium"];e.append("uid","".concat(t).concat(r.userId))}else if(g&&n){let t=m[v?"premium":"nonPremium"];e.append("uid","".concat(t).concat(p))}return h&&e.append("ga",h),w&&e.append("semt",w),t&&Object.keys(t).forEach(r=>e.append(r,t[r])),e.toString()},[t,h,g,n,v,w,p,r]);return"".concat(e).concat(b?"?".concat(b):"")}},80144:function(e,t,r){r.d(t,{i:function(){return l}});var n=r(52983),o=r(93898);let l=()=>(0,n.useContext)(o.B)},21455:function(e,t,r){r.d(t,{u:function(){return l}});var n=r(52983),o=r(26670);let l=()=>{let e=(0,n.useContext)(o.o);if(null===e)throw Error("useModalPricingState must be used within a ModalPricingContext");return e}},33247:function(e,t,r){r.d(t,{R:function(){return s}});var n=r(51780),o=r(52983),l=r(26140);let i={ai:"photo",mockup:"vector",template:"vector"},u={keyword:"tag",collections:"collection",image_search:"search",image_search_similar:"search",user_recommendations_home:"home",popular:"search",recent:"search",family:"author"},a={"/collection":"collection"},c=()=>{let e=(0,l.Q)(),{pathname:t}=(0,n.useRouter)(),r=null==e?void 0:e.fromView;if(r){var o;return null!==(o=u[r])&&void 0!==o?o:r}return a[t]},s=()=>{let e=c();return(0,o.useCallback)(t=>{var r;let{type:n,subtype:o,authorName:l,isPremium:u,isAIGenerated:a,eventName:c,pageType:s,businessLine:d="content",editor:f,tool:m}=t,p=new URLSearchParams;p.set("business_line",d);let v=null!=s?s:e;return v&&p.set("page_type",v),p.set("item_type",null!==(r=i[n])&&void 0!==r?r:n),o&&p.set("item_subtype",o),l&&p.set("item_author",l),f&&p.set("editor",f),m&&p.set("tool",m),p.set("is_premium_item",u.toString()),p.set("is_ai_generated",a.toString()),p.set("event_name",c),p},[e])}},73527:function(e,t,r){r.d(t,{f:function(){return i}});var n=r(32950),o=r(5105);let l=["icon","video","font"],i=()=>{let e=(0,n.Jn)("type");return!!(0,o.j)()||!(e&&l.includes(e))}},47152:function(e,t,r){r.d(t,{T:function(){return i},U:function(){return u}});var n=r(97458),o=r(52983);let l=(0,o.createContext)({isCollapsed:null}),i=e=>{let{isCollapsed:t,children:r}=e,i=(0,o.useMemo)(()=>({isCollapsed:t}),[t]);return(0,n.jsx)(l.Provider,{value:i,children:r})},u=()=>(0,o.useContext)(l)},61462:function(e,t,r){r.d(t,{b:function(){return l}});var n=r(97458),o=r(40409);let l=e=>{let{children:t,...r}=e;return(0,n.jsx)(o.t.Provider,{value:r,children:t})}},3223:function(e,t,r){r.d(t,{z:function(){return i}});var n=r(52983),o=r(80144);let l={ai:"regular",photo:"regular",vector:"regular",psd:"regular",icon:"icon",template:"template",mockup:"mockup",video:"video","3d":"3d"},i=e=>{let{id:t,type:r,premium:i,position:u}=e,{vertical:a,addEventTrackerToQueue:c}=(0,o.i)();return(0,n.useCallback)(()=>{var e;let n={item_id:t.toString(),is_premium_item:i?"1":"0",position:u.toString(),item_supertype:null!==(e=l[r])&&void 0!==e?e:r,vertical:null!=a?a:r};null==c||c(n)},[c,t,u,i,r,a])}},11569:function(e,t,r){var n=r(97458);t.Z=e=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:16,height:16,"aria-hidden":!0,...e,children:(0,n.jsx)("path",{d:"M492.9 11.3c-18.4-14.8-43.4-15.1-62.3-.9-40.3 30.6-87.2 74.5-132 123.8-39.8 43.7-74.1 87.3-97.9 124.2-1.2 0-2.3-.1-3.5-.1-36.4 0-67.3 14.7-92 43.7-19.4 22.7-31.5 50.5-40.4 70.7-3.8 8.6-7.3 16.7-10.2 21.5-18.7 31.2-34.6 38-36.2 38.7-9.5 2.6-16.6 10.6-18.1 20.4a25.1 25.1 0 0 0 12.2 25.4C14.9 480 71.4 512 167 512h20c33.4 0 67.5-13.1 93.6-36 28-24.6 43.4-56.8 43.4-90.8 0-8.5-.9-16.9-2.5-25C390.5 277 469 155.4 507.3 71.9c9.8-21.5 4-45.8-14.4-60.6M247.6 438.4c-17.1 15-39.2 23.6-60.6 23.6h-20c-38.3 0-69.2-5.9-91.2-12.1 7-7.9 14.3-17.7 21.7-30 4.5-7.4 8.4-16.5 13.1-27.1 20.3-46.2 40.8-84.5 86.7-84.5 42.4 0 76.8 34.5 76.8 76.8-.1 19.4-9.5 38.3-26.5 53.3m4.8-167.4c9.3-13.5 19.7-27.6 31.1-42 20.3 5 37.7 18.2 48.2 36.3-11.1 15.2-22.1 29.9-33 43.7-12.2-16-28.1-29.1-46.3-38M461.8 51c-22 48-59.2 111.1-99.8 171-12.2-14.4-27.4-26-44.6-33.8C363 135.9 415.9 84.4 460.9 50.3c.2-.1.3-.2.4-.3.3.1.6.4.7.6-.1.1-.1.3-.2.4"})})},27488:function(e,t,r){var n=r(97458);t.Z=e=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:16,height:16,"aria-hidden":!0,...e,children:(0,n.jsx)("path",{d:"M19.802 3.414 18.7.914c-.538-1.219-2.269-1.219-2.806 0l-1.102 2.5a1.53 1.53 0 0 1-.784.784l-2.5 1.102c-1.22.538-1.22 2.269 0 2.806l2.5 1.102c.35.154.63.434.784.784l1.102 2.5c.537 1.22 2.268 1.22 2.806 0l1.102-2.5c.154-.35.434-.63.784-.784l2.5-1.102c1.219-.537 1.219-2.268 0-2.806l-2.5-1.102a1.53 1.53 0 0 1-.784-.784M5.442 9.52l.74 1.678c.103.235.291.423.526.527l1.677.74c.82.36.82 1.522 0 1.883l-1.677.74a1.03 1.03 0 0 0-.527.526l-.74 1.678c-.36.819-1.522.819-1.883 0l-.74-1.678a1.03 1.03 0 0 0-.526-.526l-1.678-.74c-.819-.36-.819-1.523 0-1.884l1.678-.74c.235-.103.423-.291.526-.526l.74-1.678c.36-.818 1.523-.818 1.884 0m8.925 7.574.608 1.382c.086.193.24.348.434.433l1.382.61a.848.848 0 0 1 0 1.55l-1.382.61a.85.85 0 0 0-.434.433l-.608 1.381a.848.848 0 0 1-1.551 0l-.61-1.381a.85.85 0 0 0-.433-.434l-1.381-.609a.848.848 0 0 1 0-1.55l1.381-.61a.85.85 0 0 0 .434-.433l.609-1.382a.848.848 0 0 1 1.55 0z"})})},44854:function(e,t,r){var n=r(97458);t.Z=e=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg","data-name":"Capa 1",viewBox:"0 0 23.99 24.38",width:16,height:16,"aria-hidden":!0,...e,children:[(0,n.jsx)("path",{d:"M22.82 14.89c-.65 0-1.17.52-1.17 1.17v4.33c0 .9-.74 1.64-1.64 1.64H3.98c-.44 0-.85-.17-1.16-.48s-.48-.72-.48-1.16l.02-16.03c0-.9.74-1.64 1.64-1.64h4.21c.65 0 1.17-.52 1.17-1.17S8.86.38 8.21.38H4C1.8.38.02 2.16.02 4.36L0 20.39c0 1.07.41 2.07 1.17 2.82.75.75 1.75 1.17 2.82 1.17h16.02c2.2 0 3.98-1.79 3.98-3.98v-4.33c0-.65-.52-1.17-1.17-1.17Z"}),(0,n.jsx)("path",{d:"M5.03 19.16c-.45 0-.7-.5-.4-.82l3.38-3.69c.22-.24.63-.23.83.03l1.66 2.1 3.6-3.93c.31-.34.88-.32 1.16.04l4.09 5.17c.36.46.01 1.11-.6 1.11H5.03ZM23.67 10.84l-2.1-2.1c1.63-2.46 1.07-5.81-1.32-7.61a5.61 5.61 0 0 0-7.88 1.14 5.55 5.55 0 0 0-1.06 4.17c.21 1.48.99 2.8 2.2 3.7a5.68 5.68 0 0 0 6.47.19l2.1 2.1c.22.21.5.32.79.32s.58-.11.8-.32c.43-.44.43-1.15 0-1.59m-3.04-5.19c0 2.06-1.68 3.74-3.74 3.74a3.74 3.74 0 0 1 0-7.48c2.06 0 3.74 1.68 3.74 3.74"})]})},62758:function(e,t,r){r.d(t,{z:function(){return u}});var n=r(97458),o=r(59251),l=r(18503),i=r(78364);let u=e=>{let{children:t,listClassName:r,draggableClassName:u,nextNavigationButtonEffect:a,arrowPrevAriaLabel:c,arrowNextAriaLabel:s}=e;return(0,n.jsx)("div",{className:(0,i.W)("$static xl:$relative $w-full","$static xl:$absolute $w-full"),children:(0,n.jsx)(o.DraggableNavigation,{style:"resources",className:u,nextNavigationButtonEffect:a,arrowDataCy:"home-hero-carrousel-arrow","aria-label":"Home carousel navigation",arrowPrevAriaLabel:c,arrowNextAriaLabel:s,children:(0,n.jsx)("ul",{className:(0,l.m)("$flex","$gap-20",r),children:t.map(e=>(0,n.jsx)("li",{children:e},e.key))})})})}},41047:function(e,t,r){r.d(t,{Wg:function(){return n}});let n={anonymous:"anonymous",free:"registered",premium:"payment"}},11645:function(e,t,r){r.d(t,{u:function(){return l}});var n=r(52983),o=r(8147);let l=()=>{let e=(0,o.H)();return(0,n.useCallback)(t=>{if(!e)return!0;try{let r=e.disabledPermissionsTools;if(!r)return console.error(JSON.stringify({fatal_error:"Error checking tool permission for ".concat(t," from wallet ").concat(e.walletId),error:"Disabled permissions tools not found"})),!0;return!(t in r)}catch(r){return console.error(JSON.stringify({fatal_error:"Error checking tool permission for ".concat(t," from wallet ").concat(e.walletId),error:r})),!0}},[e])}},41937:function(e,t,r){r.d(t,{I:function(){return o}});var n=r(8147);let o=()=>{let e=(0,n.H)();return!e||!!(null==e?void 0:e.profile.isAnonymous)}},2394:function(e,t,r){r.d(t,{E:function(){return o}});var n=r(8147);let o=()=>{let e=(0,n.H)();return!!(null==e?void 0:e.profile.isEnterprise)}},54455:function(e,t,r){r.d(t,{E:function(){return o}});var n=r(8147);let o=()=>{let e=(0,n.H)();return!!(null==e?void 0:e.profile.hasSubscriptions)}},90312:function(e,t,r){r.d(t,{e:function(){return l}});var n=r(87420),o=r(50281);let l=()=>{let e=(0,o.A)(),t=(0,n.aw)(),r=(0,n.ZK)();return{signUpUrl:"".concat("es"===r?"https://www.freepik.es/sign-up":"https://www.freepik.com/sign-up","?").concat(t),setLoginCookies:e}}},43186:function(e,t,r){r.d(t,{J:function(){return c}});var n=r(52983);let o=async e=>{let{walletId:t}=e,r=await fetch(t?"/api/user/downloads/limit?walletId=".concat(t):"/api/user/downloads/limit");return r.ok?{success:!0,data:await r.json()}:401===r.status||403===r.status||405===r.status?{success:!1,data:"AUTHENTICATION_ERROR"}:404===r.status?{success:!1,data:"NOT_FOUND"}:{success:!1,data:"UNKNOWN_ERROR"}};var l=r(1850);l.z.object({data:l.z.object({filename:l.z.string(),url:l.z.string(),today_downloads:l.z.number(),download_limit:l.z.number()}).transform(e=>{let{download_limit:t,today_downloads:r,...n}=e;return{todayDownloads:r,downloadLimit:t,...n}})}),l.z.object({data:l.z.object({current:l.z.number(),limit:l.z.number()})}).transform(e=>{let{data:t}=e;return t});var i=r(59445),u=r(28380),a=r(6476);let c=()=>{let e=(0,i.Lh)(),t=(0,a.aj)();return(0,n.useCallback)(async()=>{let{success:r,data:n}=await o({walletId:e});if(!r)throw Error("Error fetching user download info");let l={downloads:(null==n?void 0:n.current)||0,limit:(null==n?void 0:n.limit)||0};return t(l),u.f.update({downloads:l.downloads,limit_downloads:l.limit}),l},[t,e])}},85229:function(e,t,r){r.d(t,{l:function(){return i}});var n=r(7616),o=r(59445);let l=(0,r(24399).cn)(!1),i=()=>{let{isUnpaid:e}=(0,o.RI)(),[t,r]=(0,n.KO)(l);return{isUserWinback:e,isOpenWinbackModal:t,showWinbackModal:()=>r(!0),hideWinbackModal:()=>r(!1)}}},2209:function(e,t,r){r.d(t,{y:function(){return o}});var n=r(52983);let o=(e,t)=>{let r=(0,n.useRef)();return(0,n.useCallback)(function(){for(var n=arguments.length,o=Array(n),l=0;l{clearTimeout(r.current),e(...o)},t)},[e,t])}},46700:function(e,t,r){r.d(t,{V:function(){return l}});var n=r(52983),o=r(43186);let l=()=>{let e=(0,o.J)();return(0,n.useCallback)((t,r)=>{let n=document.createElement("a");n.style.display="none",n.href=t,r&&(n.download=r),void 0===n.download&&n.setAttribute("target","_blank"),document.body.appendChild(n),n.click(),setTimeout(function(){document.body.removeChild(n),e(),URL.revokeObjectURL(t)},200)},[e])}},57164:function(e,t,r){r.d(t,{gm:function(){return l}});var n=r(52983);let o=(0,n.createContext)(void 0);function l(e){let t=(0,n.useContext)(o);return e||t||"ltr"}},22092:function(e,t,r){r.d(t,{Pc:function(){return _},ck:function(){return I},fC:function(){return S}});var n=r(13491),o=r(52983),l=r(12527),i=r(88957),u=r(81213),a=r(62331),c=r(74009),s=r(37956),d=r(91109),f=r(23196),m=r(57164);let p="rovingFocusGroup.onEntryFocus",v={bubbles:!1,cancelable:!0},g="RovingFocusGroup",[h,w,b]=(0,i.B)(g),[x,_]=(0,a.b)(g,[b]),[y,C]=x(g),j=(0,o.forwardRef)((e,t)=>(0,o.createElement)(h.Provider,{scope:e.__scopeRovingFocusGroup},(0,o.createElement)(h.Slot,{scope:e.__scopeRovingFocusGroup},(0,o.createElement)(E,(0,n.Z)({},e,{ref:t}))))),E=(0,o.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:r,orientation:i,loop:a=!1,dir:c,currentTabStopId:g,defaultCurrentTabStopId:h,onCurrentTabStopIdChange:b,onEntryFocus:x,..._}=e,C=(0,o.useRef)(null),j=(0,u.e)(t,C),E=(0,m.gm)(c),[k=null,R]=(0,f.T)({prop:g,defaultProp:h,onChange:b}),[S,I]=(0,o.useState)(!1),T=(0,d.W)(x),A=w(r),M=(0,o.useRef)(!1),[P,D]=(0,o.useState)(0);return(0,o.useEffect)(()=>{let e=C.current;if(e)return e.addEventListener(p,T),()=>e.removeEventListener(p,T)},[T]),(0,o.createElement)(y,{scope:r,orientation:i,dir:E,loop:a,currentTabStopId:k,onItemFocus:(0,o.useCallback)(e=>R(e),[R]),onItemShiftTab:(0,o.useCallback)(()=>I(!0),[]),onFocusableItemAdd:(0,o.useCallback)(()=>D(e=>e+1),[]),onFocusableItemRemove:(0,o.useCallback)(()=>D(e=>e-1),[])},(0,o.createElement)(s.WV.div,(0,n.Z)({tabIndex:S||0===P?-1:0,"data-orientation":i},_,{ref:j,style:{outline:"none",...e.style},onMouseDown:(0,l.M)(e.onMouseDown,()=>{M.current=!0}),onFocus:(0,l.M)(e.onFocus,e=>{let t=!M.current;if(e.target===e.currentTarget&&t&&!S){let t=new CustomEvent(p,v);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=A().filter(e=>e.focusable);N([e.find(e=>e.active),e.find(e=>e.id===k),...e].filter(Boolean).map(e=>e.ref.current))}}M.current=!1}),onBlur:(0,l.M)(e.onBlur,()=>I(!1))})))}),k=(0,o.forwardRef)((e,t)=>{let{__scopeRovingFocusGroup:r,focusable:i=!0,active:u=!1,tabStopId:a,...d}=e,f=(0,c.M)(),m=a||f,p=C("RovingFocusGroupItem",r),v=p.currentTabStopId===m,g=w(r),{onFocusableItemAdd:b,onFocusableItemRemove:x}=p;return(0,o.useEffect)(()=>{if(i)return b(),()=>x()},[i,b,x]),(0,o.createElement)(h.ItemSlot,{scope:r,id:m,focusable:i,active:u},(0,o.createElement)(s.WV.span,(0,n.Z)({tabIndex:v?0:-1,"data-orientation":p.orientation},d,{ref:t,onMouseDown:(0,l.M)(e.onMouseDown,e=>{i?p.onItemFocus(m):e.preventDefault()}),onFocus:(0,l.M)(e.onFocus,()=>p.onItemFocus(m)),onKeyDown:(0,l.M)(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){p.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,r){var n;let o=(n=e.key,"rtl"!==r?n:"ArrowLeft"===n?"ArrowRight":"ArrowRight"===n?"ArrowLeft":n);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(o))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(o)))return R[o]}(e,p.orientation,p.dir);if(void 0!==t){e.preventDefault();let o=g().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){var r,n;"prev"===t&&o.reverse();let l=o.indexOf(e.currentTarget);o=p.loop?(r=o,n=l+1,r.map((e,t)=>r[(n+t)%r.length])):o.slice(l+1)}setTimeout(()=>N(o))}})})))}),R={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function N(e){let t=document.activeElement;for(let r of e)if(r===t||(r.focus(),document.activeElement!==t))return}let S=j,I=k},97374:function(e,t,r){r.d(t,{fC:function(){return s},g7:function(){return i}});var n=r(52983);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}var l=r(97458),i=n.forwardRef((e,t)=>{let{children:r,...o}=e,i=n.Children.toArray(r),a=i.find(c);if(a){let e=a.props.children,r=i.map(t=>t!==a?t:n.Children.count(e)>1?n.Children.only(null):n.isValidElement(e)?e.props.children:null);return(0,l.jsx)(u,{...o,ref:t,children:n.isValidElement(e)?n.cloneElement(e,void 0,r):null})}return(0,l.jsx)(u,{...o,ref:t,children:r})});i.displayName="Slot";var u=n.forwardRef((e,t)=>{let{children:r,...l}=e;if(n.isValidElement(r)){let e,i;let u=(e=Object.getOwnPropertyDescriptor(r.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?r.ref:(e=Object.getOwnPropertyDescriptor(r,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?r.props.ref:r.props.ref||r.ref,a=function(e,t){let r={...t};for(let n in t){let o=e[n],l=t[n];/^on[A-Z]/.test(n)?o&&l?r[n]=(...e)=>{l(...e),o(...e)}:o&&(r[n]=o):"style"===n?r[n]={...o,...l}:"className"===n&&(r[n]=[o,l].filter(Boolean).join(" "))}return{...e,...r}}(l,r.props);return r.type!==n.Fragment&&(a.ref=t?function(...e){return t=>{let r=!1,n=e.map(e=>{let n=o(e,t);return r||"function"!=typeof n||(r=!0),n});if(r)return()=>{for(let t=0;t1?n.Children.only(null):null});u.displayName="SlotClone";var a=({children:e})=>(0,l.jsx)(l.Fragment,{children:e});function c(e){return n.isValidElement(e)&&e.type===a}var s=i}}]);